﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentGateway.Model
{
    public class ProjectSettings
    {
        public TPWebSocketServerSetting TPWebSocketServer { get;set;}
        public IGWebSocketServerSetting IGWebSocketServer { get; set; }
        public IGTCPServerSetting IGTCPServer { get; set; }
        public IGSerialPortSetting IGSerialPort { get; set; }

    }
    public class ServerConfig
    {
        public string IPAddress { get; set; }
        public string Port { get; set; }
    }
    public class TPWebSocketServerSetting : ServerConfig
    {
    }
    public class IGWebSocketServerSetting : ServerConfig
    {
    }
    public class IGTCPServerSetting : ServerConfig
    {
    }
    public class IGSerialPortSetting
    {
        public string PortName { get; set; }
        public string BaudRate { get; set; }
        public string Parity { get; set; }
        public string DataBits { get; set; }
        public string StopBits { get; set; }
    }
}
